import { createRouter, createWebHistory, RouteRecordRaw } from "vue-router";

const routes: Array<RouteRecordRaw> = [
	{
		path: "/",
		name: "home",
		component: () => import("~/views/home/index.vue"),
	},
	{
		path: "/notice-list",
		name: "notice-list",
		component: () => import("~/views/notice/list"),
	},
	{
		path: "/notice-detail",
		name: "notice-detail",
		component: () => import("~/views/notice/detail"),
	},
	{
		path: "/land-list",
		name: "land-list",
		component: () => import("~/views/land/list"),
	},
	{
		path: "/land-detail",
		name: "land-detail",
		component: () => import("~/views/land/detail"),
	},
];

const router = createRouter({
	history: createWebHistory(`${import.meta.env.VITE_APP_PREFIX}/`),
	routes: [...routes],
});

export default router;
